﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="QLNhapHang.aspx.cs" Inherits="Web.Shalo.BanPMS1.Admin.QLNhapHang" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentAdmin" runat="server">
    <div id="page-heading">
		<h1>Đơn Nhập Hàng</h1>
	</div>
	<!-- end page-heading -->

	<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
	<tr>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
		<div id="content-table-inner">
		
			<!--  start table-content  -->
			<div id="table-content">
				
			
			    <asp:MultiView ID="MultiView1" runat="server">
                    <asp:View ID="View1" runat="server">
                        <table style="width: 100%">
                            <tr>
                                <td>
                                    <h2>Danh Sách Nhập Hàng</h2></td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:GridView ID="GVCtnh" runat="server" AutoGenerateColumns="False" 
                                        CssClass="mGrid" Width="857px" 
                                        onselectedindexchanging="GVCtnh_SelectedIndexChanging" AllowPaging="True" 
                                        onpageindexchanging="GVCtnh_PageIndexChanging" 
                                        onrowdeleting="GVCtnh_RowDeleting" PageSize="20">
                                        <Columns>
                                            <asp:BoundField DataField="SoTT" HeaderText="Số PNH" />
                                            <asp:BoundField DataField="TenMH" HeaderText="Tên MH" />
                                            <asp:BoundField DataField="TenNCC" HeaderText="Tên NCC" />
                                            <asp:BoundField DataField="NgayNhap" HeaderText="Ngày Nhập" />
                                            <asp:BoundField DataField="SoLuong" HeaderText="Số Lượng" />
                                            <asp:BoundField DataField="GiaMua" HeaderText="Giá Mua" />
                                            <asp:BoundField DataField="TongGia" HeaderText="Tổng Giá" />
                                            <asp:ButtonField CommandName="Select" Text="Sửa" ControlStyle-CssClass="link" >
                                            <ControlStyle CssClass="link" />
                                            <ItemStyle HorizontalAlign="Center" />
                                            </asp:ButtonField>
                                            <asp:ButtonField CommandName="Delete" Text="Xóa" ControlStyle-CssClass="link" >
                                            <ControlStyle CssClass="link" />
                                            <ItemStyle HorizontalAlign="Center" />
                                            </asp:ButtonField>
                                        </Columns>
                                    </asp:GridView>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="btnNhapHang" runat="server" Text="Nhập Hàng" CssClass="btn" 
                                        onclick="btnNhapHang_Click" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </asp:View>
                    <br />
                    <asp:View ID="View2" runat="server">
                        <table style="width: 100%">
                            <tr>
                                <td colspan="2">
                                    <h2>Cập Nhật Nhập Hàng</h2></td>
                            </tr>
                            <tr>
                                <td style="width: 155px">
                                    Ngày Nhập:</td>
                                <td>
                                    <asp:Label ID="labNgayNhap" runat="server" Text="Label"></asp:Label>
                                    <asp:Label ID="labNgayNhap2" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 155px">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 155px">
                                    Nhà Cung Cấp:</td>
                                <td>
                                    <asp:DropDownList ID="ddlNhaCC" runat="server" Height="30px" Width="150px" 
                                      >
                                    </asp:DropDownList>
                                    <asp:Label ID="labNCC" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 155px">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 155px">
                                    Mặt Hàng:</td>
                                <td>
                                    <asp:DropDownList ID="ddlMatHang" runat="server" Height="30px" Width="300px" 
                                        >
                                    </asp:DropDownList>
                                    <asp:Label ID="labMatHang" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 155px">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 155px; height: 33px;">
                                    Số Lượng:</td>
                                <td style="height: 33px">
                                    <asp:TextBox ID="txtSoLuong" runat="server" Width="70px" Height="30px">1</asp:TextBox>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                        ControlToValidate="txtSoLuong" Display="Dynamic" ErrorMessage="(Nhập Số)" 
                                        ForeColor="Red" ValidationExpression="^\d+$"></asp:RegularExpressionValidator>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 155px">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 155px">
                                    Giá Mua:</td>
                                <td>
                                    <asp:TextBox ID="txtGiaMua" runat="server" Height="30px" Width="120px"></asp:TextBox>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                        ControlToValidate="txtGiaMua" Display="Dynamic" ErrorMessage="(Nhập Số)" 
                                        ForeColor="Red" ValidationExpression="^\d+$"></asp:RegularExpressionValidator>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                        ControlToValidate="txtGiaMua" ErrorMessage="(*)" ForeColor="Red"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 155px; height: 16px;">
                                    </td>
                                <td style="height: 16px">
                                    <asp:Label ID="labSoTT" runat="server" Text="Label" Visible="False"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 155px">
                                    &nbsp;</td>
                                <td>
                                    <asp:Button ID="btnThem" runat="server" Text="Thêm" CssClass="btn" 
                                        onclick="btnThem_Click" />
                                    <asp:Button ID="btnSua" runat="server" Text="Sửa"  CssClass="btn" 
                                        onclick="btnSua_Click"/>
                                    <asp:Button ID="btnHuy" runat="server" Text="Hủy" CssClass="btn" 
                                        onclick="btnHuy_Click" CausesValidation="False" />
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 155px">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 155px">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </asp:View>
                </asp:MultiView>
				
			
			</div>
			<!--  end table-content  -->
	
			<div class="clear"></div>
		 
		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>
</asp:Content>
